Added Bar and Ajax Code