refactor code

change from activity  to fragment.sliding menu