added previous selection
added controller function default argument