fixed a duplicated local private var
added empty() method. Fixed selectView to keep fragments order in array