added more simple function for switch fragment
fixed clear back stack