updating the ionic layout