Parameters fragment fix

Fixed the toast message on the parameters fragment, and small code refactor.