Your indentation makes the code harder to read. I would go back and stick with one style of indentation and also dont indent too much or too little. Also your question is very unclear to me. Try to explain exactly what errors you are receiving or what problems are occurring so we can help you better.