clean up some code and ui and added windows phone api next then controls